import request from "@/util/request";

/**
 * @description 导师列表
 * @returns {Promise}
 */
export function getMentorInfoListApi(data) {
	return request({
		url: '/jiuquan/mentorInfo/getMentorInfoList',
		method: 'GET',
		data
	})
}

/**
 * @description 导师详情
 * @returns {Promise}
 */
export function getMentorInfoByIdApi(data) {
	return request({
		url: '/jiuquan/mentorInfo/getMentorInfoById',
		method: 'GET',
		data
	})
}
/**
 * @description 评论列表
 * @returns {Promise}
 */
export function getCommentByTypeList(data) {
	return request({
		url: '/jiuquan/comment/getCommentByTypeList',
		method: 'GET',
		data
	})
}
/**
 * @description 评论提交
 * @returns {Promise}
 */

export function userAddComment(data) {
	return request({
		url: '/jiuquan/comment/userAddComment',
		method: 'post',
		data
	}, true)
}
/**
 * @description 咨询导师(辅导次数+1)
 * @returns {Promise}
 */

export function addCounsellingCount(data) {
	return request({
		url: '/jiuquan/mentorInfo/addCounsellingCount',
		method: 'post',
		data
	}, true)
}